layui.define(['layer'], function(exports) {

    var formField = {
        components: {
            input: {
                id: '-1',
                index: '-1',
                label: "单行文本",
                tag: "input",
                tagIcon: 'input',
                placeholder: "请输入",
                defaultValue: null,
                labelWidth: 110,
                width: "100%",
                clearable: true,
                maxlength: null,
                showWordLimit: false,
                readonly: false,
                disabled: false,
                required: true,
                hideLabel: false,
                expression: "",
                document: '',
            },

            line: {
                id: '-1',
                index: '-1',
                label: "分割线",
                tag: "line",
                tagIcon: 'line',
                defaultValue: "分割线",
                width: "100%",
                colorSelection: "#5fb878",
                document: ''
            },
            spacing: {
                id: '-1',
                index: '-1',
                label: "间距",
                tag: "spacing",
                tagIcon: 'spacing',
                defaultValue: "间距",
                whiteSpace: "30",
                document: ''
            },
            grid: {
                id: '-1',
                index: '-1',
                tag: 'grid',
                span: 2,
                columns: [{
                        span: 12,
                        list: [],
                    },
                    {
                        span: 12,
                        list: [],
                    }
                ]
            }
        },
        componentsLang: [{
                component: "c1",
                name: "输入型组件(基于layui)",
                list: [
                    { "key": "input", "icon": "layui-icon layui-icon-layer" },
                ]
            },
            {
                component: "c3",
                name: "布局型组件(基于layui)",
                list: [
                    { "key": "grid", "icon": "layui-icon layui-icon-layer" },
                    { "key": "line", "icon": "layui-icon layui-icon-subtraction" },
                    { "key": "spacing", "icon": "layui-icon layui-icon-more-vertical" }
                ]
            }
        ],
    }
    exports('formField', formField);

});